#!/bin/bash
VERSION=0.8.0
REGISTRY=docker.hgpark.cn
NAME=yfhub/picfit

IMAGE_NAME=${REGISTRY}/${NAME}:${VERSION}
CONTAINER_NAME=picfit

docker rm -vf ${CONTAINER_NAME}
docker rmi ${IMAGE_NAME}

docker pull ${IMAGE_NAME}

docker run --restart=always \
    -d --name ${CONTAINER_NAME} \
    -p 10050:10050 \
    -v /home/cuichao/IdeaProject/TeaRoom/deployment/:/app/bin/config/ \
    -v /home/cuichao/下载/images/:/app/bin/images/ \
    ${IMAGE_NAME} -c /app/bin/config/picfit_config.json